CS182 Intelligent machines � Lisp review

Greg Detre

@17:00 Monday, September 23, 2002

Alex + Octavian, MD G-221

 

LISP = LISt Processing, Lots of Irritating Superfluous Parentheses

2nd oldest high-level language still in use (after FOrtran)

 

Basics

2 basic data types:

atom

number of symbol, has no parts

list

sequence of atoms/lists inside matching parentheses (nil = empty list)

able to define everything else out of them

 

parallel binding of local variables being defined in a do loop, so they can�t refer to each other

can use a do* instead

 

 

Admin

xfree86.cygwin.com

download x-server � connect by ssh the same way, but it�s a GUI

get graphical output from emacs or whatever

emacs for windows � lisp interpreter too

slides online

Questions

why is Lisp so applicable to AI???

destructive functions??? e.g. replaca???